package fleet_management

class DriverDetails {
	
	String driverName
	String permanentResidenceAddress
	String contactNumber
	String licenseNumber
	String currentLocation
	Date dateOfBirth
	String approximateYearOfRetirement
	Date dateOfJoinSC
	String noOfYearAtCurrentLocation
	String remarks
	String adminRole

    static constraints = {
		driverName(blank:false,nullable:false)
		permanentResidenceAddress(blank:false,nullable:false)
		contactNumber(blank:false,nullable:false)
		licenseNumber(blank:false,nullable:false)
		currentLocation(blank:false,nullable:false)
		dateOfBirth(blank:false,nullable:false)
		approximateYearOfRetirement(blank:false,nullable:false)
		dateOfJoinSC(blank:false,nullable:false)
		noOfYearAtCurrentLocation(blank:false,nullable:false)
		remarks(blank:false,nullable:false,maxSize:1000)
		
    }
	String toString(){
		return "$driverName"
		}
}
